﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MoneyWentWhere.DataModel;

namespace MoneyWentWhere.Test
{
    static class ExtensionMethods
    {
        public static void PrintList(this Account ac, String title)
        {
            Console.WriteLine("--- " + title);
            foreach (Transaction t in ac.Transactions)
            {
                Console.WriteLine(t.Date + " " + t.Amount);
            }
            Console.WriteLine();
        }
    }
}
